<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="main_html">
	<head>
		<%@include file="components/common/head.ini"%>
		<!--[if IE 6]> 
			<script src="/zfstyle_v4/js/ie6comm.js"></script> 
			<script> 
				DD_belatedPNG.fix('img,.mainbody,.topframe,.mainframe,.botframe,.menu,.type_mainframe'); 
			</script> 
		<![endif]-->

	</head>
	<%
		//Xtyh xtyh = (Xtyh) request.getSession().getAttribute("loginUser");
		//String id = xtyh.getId().toString();
		//String code = xtyh.getDlid();
		//String name = xtyh.getXm();
	%>
	<body>
		<input type="hidden" id="USERID" name="id" value="admin" />
		<div class="mainbody">
			<div class="topframe register">
				<div class="head">
					<div class="logo">
						<h2 class="floatleft">
							<img src="/zfstyle_v4/logo/logo_school.png" />
						</h2>
						<h3 class="floatleft">
							<img src="/zfstyle_v4/logo/logo_zc.png" />
						</h3>
					</div>
					<div class="info">
						<div class="welcome">
							<div class="tool"
								onmouseover="javascript:document.getElementById('downmenu').style.display='block'"
								onmouseout="javascript:document.getElementById('downmenu').style.display='none'">
								<a class="tool_btn" href="#" onclick="showhid('downmenu');">Admin</a>
								<div class="downmenu" id="downmenu" style="display: none;">
									<a href="#" onclick="userpassword();" class="passw">修改密码</a>
									<a href="#">个人资料</a>
								</div>
							</div>


							<span> <script language="javaScript">
								    now = new Date(),hour = now.getHours()
								    if(hour < 6){document.write("凌晨好！")}
								    else if (hour < 9){document.write("早上好！")}
								    else if (hour < 12){document.write("上午好！")}
								    else if (hour < 14){document.write("中午好！")}
								    else if (hour < 17){document.write("下午好！")}
								    else if (hour < 19){document.write("傍晚好！")}
								    else if (hour < 22){document.write("晚上好！")}
								    else {document.write("夜里好！")}
							    </script> </span>
							<a
								href="javascript:GoMore('message.do?doclose=no','M133','个人消息','GR00')"
								class="news">[新消息(9)] </a>
							<div class=tool_skin
								onmouseover="javascript:document.getElementById('changeskin').style.display='block'"
								onmouseout="javascript:document.getElementById('changeskin').style.display='none'">
								<IMG title="更换皮肤"
									src="../zfstyle_v4/images/gray/ico_changeskin.gif" width=16
									height=14 />
								<div style="DISPLAY: none" id=changeskin class=changeskin>
									<SPAN>换肤：</SPAN>
									<a class="styleswitch skin02" style="cursor: pointer"
										title="蓝" rel=skin_blue></a>
									<a class="styleswitch skin01" style="cursor: pointer"
										title="灰" rel=skin_gray></a>
									<a class="styleswitch skin03" style="cursor: pointer"
										title="绿" rel=skin_green></a>
								</div>
							</div>
							<a class="logout" title="注销"
								onclick="showConfirmDivLayer('确定注销吗？',{okFun:function(){exit();}});"></a>
						</div>
					</div>
				</div>
				<div class="menu">
					<div class="nav" id="firstxtzy">
						<div class="morediv" style="display: none;">
							<a href="#" class="more">更多</a>
							<div class="morelist">
								<a href="#">更多栏目</a>
								<a href="#">更多栏目</a>
								<a href="#">更多栏目</a>
								<a href="#">更多栏目</a>
							</div>
						</div>
					</div>
				</div>
			</div>

			<div class="mainframe">
				<div class="leftframe">
					<div class="piclink_01">
						<h3>
							<span class="title">常用功能</span>
							<img src="../zfstyle_v4/images/blue/ico_help.gif" width="14"
								height="14" class="help"
								onmouseover="helpcon.style.display='block'"
								onmouseout="helpcon.style.display='none'" />
							<p class="titlecon" id="helpcon" style="display: none;">
								提供快速进入页面的快捷方式，点"
								<img src="../images/blue/ico_linkmore.gif" />
								"可自定义常用功能，点"
								<img src="../images/blue/ico_linkup.gif" />
								<img src="../images/blue/ico_linkdown.gif" />
								"可进行上移、下移。
							</p>
						</h3>
						<ul>
							<li>
								<a href="#"><img
										src="../zfstyle_v4/images/blue/54/Function01.png" /><span>文字录入</span>
								</a>
							</li>
							<li>
								<a href="#"><img
										src="../zfstyle_v4/images/blue/54/Function02.png" /><span>文字录入</span>
								</a>
							</li>
							<li>
								<a href="#"><img
										src="../zfstyle_v4/images/blue/54/Function03.png" /><span>文字录入</span>
								</a>
							</li>
							<li>
								<a href="#"><img
										src="../zfstyle_v4/images/blue/54/Function04.png" /><span>文字录入</span>
								</a>
							</li>
							<li>
								<a href="#"><img
										src="../zfstyle_v4/images/blue/54/Function05.png" /><span>文字录入</span>
								</a>
							</li>
							<li>
								<a href="#"><img
										src="../zfstyle_v4/images/blue/54/Function06.png" /><span>文字录入</span>
								</a>
							</li>
						</ul>
						<div class="functionbut">
							<a class="up"></a>
							<a class="down"></a>
							<a class="add" title="添加常用功能" href="demo_index_05.html"></a>
						</div>
					</div>
				</div>
				<div class="rightframe" id="rightframe">
					<div class="notice">
						<h3>
							<span>系统帮助 </span>
						</h3>
						<div>
							<a href="#">您正在使用的是正方软件设计参考标准第四版，内容更全。点击查看详细>></a>
						</div>
						<a class="close" title="隐藏"></a>
					</div>
					<div class="newsnotice">
						<h3>
							<span>通知公告</span><a
								onclick="GoMore('tzggb.do?theAction=ggll','M176','公告浏览','M175')"></a>
						</h3>
						<div class="newscon01">
							<div class="newspic" style="display: none;">
								<img src=" /zfstyle_v4/images/newspic.jpg" />
							</div>

							<ul>
								<li>
									<a href="#">正方公司《正方软件用户界面设计</a><span class="new"></span><span
										class="time">2010-03-04</span>
								</li>
								<li>
									<a href="#">正方公司《需求分析管理过程》</a><span class="time">2010-03-04</span>
								</li>
								<li>
									<a href="#">开发部周例会会议纪要20100304</a><span class="time">2010-03-04</span>
								</li>
								<li>
									<a href="#">关于2010年清明放假的通知</a><span class="time">2010-03-04</span>
								</li>
								<li>
									<a href="#">开发部周例会会议纪要20100311</a><span class="time">2010-03-04</span>
								</li>
								<li>
									<a href="#">系统集成培训</a><span class="time">2010-03-04</span>
								</li>
								<li>
									<a href="#">系统集成培训</a><span class="time">2010-03-04</span>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>

			<div id="nyxs" style="display: none;">
				<div class="type_mainframe" id="mainframe">
					<div class="notice" style="display: none;">
						<h3>
							<span>系统帮助 </span>
						</h3>
						<div>
							<a href="#">您正在使用的是正方软件设计参考标准第四版，内容更全。点击查看详细>></a>
						</div>

					</div>
					<div class="typeleft floatleft" id="left">

					</div>
					<div class="btn_hide_on" id="hideon">
						<button></button>
					</div>
					<div class="btn_hide_off" style="display: none;" id="hideoff">
						<button></button>
					</div>

					<div class="typeright floatright" id="right">
						<div class="tab_cur">
							<p class="location" id="clickto">
								<em>您的当前位置:</em>首页
							</p>
						</div>
						<div class="typecon">
							<iframe  id="framecon" name="framecon" src="content.jsp"
								width="100%" frameborder="0" marginwidth="0" marginheight="0"
								onload="this.height=0;var fdh=(this.Document?this.Document.body.scrollHeight:this.contentDocument.body.offsetHeight);this.height=(fdh>500?fdh:480)"
								scrolling="no">
							</iframe>
						</div>
					</div>
				</div>
			</div>

			<div class="botframe">
				<div class="copy">
					<span>&copy;1999-2010 <a href="http://www.zfsoft.com"
						target="_blank">杭州正方软件股份有限公司</a><span>版权所有</span>&nbsp;&nbsp;联系电话：0571-89902828</span>
				</div>
			</div>
		</div>

		<script>
		var dh = "<ul><li id='fist' class='current'><a href='main.jsp'>首页</a></li><li id='li_8ac7a0dd24f0d1870124f18bcae90003'  onclick=displayLeftTopNav('8ac7a0dd24f0d1870124f18bcae90003','0');><a href='#' onclick=setTT('li_8ac7a0dd24f0d1870124f18bcae90003')>组织结构 </a></li><li id='li_8ac7a04b247467c2012474a0ef050009'  onclick=displayLeftTopNav('8ac7a04b247467c2012474a0ef050009','0');><a href='#' onclick=setTT('li_8ac7a04b247467c2012474a0ef050009')>数据中心 </a></li><li id='li_SYSTEM'  onclick=displayLeftTopNav('SYSTEM','0');><a href='#' onclick=setTT('li_SYSTEM')>系统维护 </a></li>";
		var zj = "<div class='textlink' id='li_0'><h3 onclick='showhidediv(this);' class='open'><span>系统配置</span></h3><ul id='tab_2_0' style='display:none' class='hierarchy_03'><li><a href='#' onclick=gotoDyym('loginlist.action',this) class='none_03' id='lerUSER'><span>用户管理</span></a></li><li><a href='#' onclick=gotoDyym('xtjs.do?theAction=list',this) class='none_03' id='lerROLE'><span>角色管理</span></a></li><li><a href='#' onclick=gotoDyym('jsqx.do?theAction=list',this) class='none_03' id='lerROLERESOURCE'><span>角色权限</span></a></li><li><a href='#' onclick=gotoDyym('xtzy.do?theAction=list',this) class='none_03' id='lerRESOURCE'><span>资源配置</span></a></li></ul>";
		
			/*获取当前登陆用户的ID*/
			var USERID = document.getElementById('USERID').value;
			/*加载当前用户所有拥有的一级导航菜单*/
			var url = "xtzy.do?theAction=loadXtyhTopXtzy";
			//jQuery("#firstxtzy").load(url,{xtyhId:USERID});
			jQuery("#firstxtzy").html(dh);
			
			//隐藏二级菜单
			/*点击一级导航去加载该一级导航下的二级及其以下的三四级菜单*/
			/*点击一级导航加载方法displayLeftTopNav(String xtzyid,String xsfs)
			 xtzyid:一级导航系统资源id
			 xsfs：二级菜单的显示方式({0：下拉菜单显示方式},{值为1：图标显示方式})*/
			 function displayLeftTopNav(xtzyid,xsfs){
			    var url = "xtzy.do?theAction=loadXtyhLeftTopNav";
			 	if(xsfs == 0){
				 	//当点击非"首页"的时候,把首页的快速导航给隐藏掉并显示二级菜单
				 	jQuery(".mainframe").css('display','none');
				 	//显示二级导航菜单
				 	jQuery("#nyxs").css('display','block');
				 //	jQuery("#left").load(url,{xtyhId:USERID,xtzyId:xtzyid});
				 jQuery("#left").html(zj);
			 	}else if(xsfs == '1'){
			 	
			 	
			 	}
			 }
			 
			/* 如果xsfs的值为0
			 	执行方法loadXtyhLeftTopNav(String xtyhId, String xtzyId,callback)
			 		xtyhId:当前登陆用户id
			 		xtzyId:当前点击的一级导航菜单的Id
			 		callback:回调函数{通过jQuery的load方法,
			 		最终从服务器上返回一个组装好的二三级功能菜单,并且把组装好的功能菜单
			 		显示到main.jsp页面上的层id为piclink_01的层上}
			 	点击二三级功能菜单把三级菜单对应的内容加载到loading.jsp页面
			 如过xsfs的值为1
			 	执行方法jQuery("#mainfrme").load("tubiao.jsp");
			 		tubiao.jsp:在项目中添加tubiao.jsp页面
			 		把tubiao.jsp页面加载到层id为mainframe的层中显示
			 		{tubiao.jsp说明：
			 			jQuery(document).ready( function() {
			 				????????????
						})
			 		
			 		 }
			*/
			
		var pre = "fist";
		function setTT(data){	
		if(pre != null){
			document.getElementById(pre).className="";
		}
		document.getElementById(data).className="current";
		pre=data;
		
		}
		
		function gotoDyym(dyym,obj) {
			if(dyym != "" && dyym != "null") 
				jQuery("#framecon").attr('src',dyym);
		}
		
		jQuery("#hideoff").click(function(){
		   	jQuery("#mainframe").attr('class','type_mainframe'); 
		    jQuery("#right").attr('class','typeright floatright'); 
		    jQuery("#left").attr('class','typeleft floatleft'); 
		    jQuery("#left").css('display','');   
		    jQuery("#hideon").css('display','');
		    jQuery("#hideoff").css('display','none');
			//jQuery("#framecon").attr('height','800');
		})
		
		jQuery("#hideon").click(function(){
		    jQuery("#mainframe").attr('class','type_mainframe_hidden');
		    jQuery("#left").css('display','none');   
		    jQuery("#right").attr('class','typeright_hidden');
		    jQuery("#hideon").css('display','none');
		    jQuery("#hideoff").css('display','');
		    //jQuery("#framecon").attr('height','500');
	  	})
		
			
		</script>
	</body>
</html>
